package xyz.xmh.pattern.creational.builderpattern.abs;

import xyz.xmh.pattern.creational.builderpattern.inter.Item;
import xyz.xmh.pattern.creational.builderpattern.inter.Packing;
import xyz.xmh.pattern.creational.builderpattern.inter.impl.Bottle;

/**
 * ColdDrink
 * 冷饮
 *
 * @author xuMingHai
 * @since 2021/4/29 星期四 11:10
 */
public abstract class ColdDrink implements Item {
    @Override
    public Packing packing() {
        //使用瓶子包装
        return new Bottle();
    }

    /**
     * 设为抽象，具体实现交由后代
     *
     * @return 价格
     */
    @Override
    public abstract float price();
}
